<ul class="nav nav-tabs nav-stacked">
    <?php if (in_array('applets/user/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/applets/user/index') echo 'class="on"' ?>><a
                href="/applets/user/index">用户管理</a>
        </li>
    <?php } ?>
    <?php if (in_array('applets/info/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/applets/info/index') echo 'class="on"' ?>><a
                href="/applets/info/index">资讯管理</a>
        </li>
    <?php } ?>
    <?php if (in_array('applets/banner/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/applets/banner/index') echo 'class="on"' ?>><a
                href="/applets/banner/index">banner管理</a>
        </li>
    <?php } ?>
</ul>
<style>
    .on {
        background: #DEDADA;
    }
</style>
